﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="Complain.aspx.cs" Inherits="SBACN.WebSite.Complain" %>

<%@ Register Src="~/UC/Navigator.ascx" TagPrefix="uc" TagName="Navigator" %>
<%@ Register Src="~/UC/Menu.ascx" TagName="Menu" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script src="/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
	<script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
	<script src="/Scripts/messages_cn.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function () {
			//添加验证 
			$('#<%=btnSave.ClientID %>').click(function () {
				if (!$("#form1").valid()) {
					return false;
				}
			});
		});
		function ShowMessage() {
			window.document.getElementById("mainmailbox_content").style.display = "none";
			window.document.getElementById("submit_ok").style.display = "";

		}
		function getimgcode() {
			var randomnum = Math.random();
			var getimagecode = document.getElementById("getcode");
			getimagecode.src = "ValidationImage.aspx?sn=Message&" + randomnum;
		}
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<!--主内容区-->
	<div id="wrapper">
		<uc:Navigator runat="server" ID="ucNavigator" />
		<div id="container_r" style="width:100%; float:left;">
			<div id="complainbox" style="margin-top: 20px">
			<div id="mainmailbox_title">
				<img src="/images/complain_mailboxtitle.png" alt="" />
			</div>
			<div id="mainmailbox_content">
				<table width="700" border="0" align="center" cellpadding="0" cellspacing="0" id="tblForm" >
					<tr>
						<td width="95" align="right" valign="top" class="title_tablelist">
							<font color="#FF0000">*</font>邮箱：
						</td>
						<td width="575" class="content_tablelist" align="left">
							<asp:TextBox ID="txt_Email" runat="server" CssClass="input2  required" Width="280px"></asp:TextBox>
							<br />
							您必须提供一个正确电子邮箱地址,否则您无法收到激活邮件，从而影响您投诉的提交.
						</td>
					</tr>
					<tr>
						<td align="right" valign="top" class="title_tablelist">
							<font color="#FF0000">*</font>姓名：
						</td>
						<td align="left" class="content_tablelist">
							<asp:TextBox ID="txt_Name" runat="server" CssClass="input2 required" Width="280px"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top" class="title_tablelist">
							<font color="#FF0000">*</font>电话：
						</td>
						<td align="left" class="content_tablelist">
							<asp:TextBox ID="txt_Tel_1" runat="server" Width="30px" CssClass="input2"></asp:TextBox>
							-
							<asp:TextBox ID="txt_Tel_2" runat="server" CssClass="input2 required"></asp:TextBox>
							-
							<asp:TextBox ID="txt_Tel_3" runat="server" Width="30px" CssClass="input2"></asp:TextBox>
							<br />
							例:021-xxxxxxxx 分机号、86-13xxxxxxxxx
						</td>
					</tr>
					<tr>
						<td align="right" class="title_tablelist">
							<font color="#FF0000">*</font>主题：
						</td>
						<td align="left" class="content_tablelist">
							<asp:TextBox ID="txt_title" runat="server" CssClass="input3 required"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top" class="title_tablelist">
							<font color="#FF0000">*</font>投诉内容：
						</td>
						<td align="left" class="content_tablelist">
							<asp:TextBox ID="txt_Complain" runat="server" TextMode="MultiLine"
								CssClass="textfield required"></asp:TextBox>
							<br />
							内容不要超过1000字
						</td>
					</tr>
					<tr>
						<td align="right" valign="top" class="title_tablelist">
							<font color="#FF0000">*</font>验证码：
						</td>
						<td align="left" class="content_tablelist">
							<asp:TextBox ID="txt_valid" runat="server" CssClass="input2 required" Width="60px"></asp:TextBox>
							<img id="getcode" alt="" src="ValidationImage.aspx?sn=Complain" style="vertical-align:middle;">&nbsp;&nbsp;<a href="javascript:getimgcode()">刷新验证码</a>
							<asp:Label ID="lblValid" runat="server" ForeColor="Red" Visible="false" Text="验证码输入不正确！"></asp:Label>
						</td>
					</tr>
					<tr>
						<td height="41" colspan="2" align="center" class="btn_tablelist">
							<asp:Button ID="btnSave" runat="server" Text="提交" CssClass="btnsearch" OnClick="btnSave_Click" />
							<input id="btnCannel" type="button" value="取消" class="btnsearch" onclick="javascript:history.go(-1);" />
						</td>
					</tr>
				</table>
			</div>
			<div id="submit_ok" style="display: none; padding-top: 100px;" align="center">
					<img src="/images/ok_icon.png" width="32" height="32" alt="" />
					<asp:Label ID="lblShow" runat="server"></asp:Label>
			</div>
			</div>
		</div>
	</div>
	<div style="clear: both;">
	</div>
	<!--主内容区-->
</asp:Content>
